package com.agileai.bpm.controller.resource;

import java.util.List;

import com.agileai.bpm.bizmoduler.resource.WfDbconfigManage;
import com.agileai.bpm.controller.define.WfDBOperatorEditHandler;
import com.agileai.domain.DataParam;
import com.agileai.domain.DataRow;
import com.agileai.hotweb.controller.core.BaseHandler;
import com.agileai.hotweb.renders.DispatchRenderer;
import com.agileai.hotweb.renders.LocalRenderer;
import com.agileai.hotweb.renders.ViewRenderer;

public class WfDBConfigSelectHandler extends BaseHandler {
	public ViewRenderer prepareDisplay(DataParam param){
		WfDbconfigManage wfDbconfigManage = (WfDbconfigManage)this.lookupService(WfDbconfigManage.class);
		List<DataRow> rsList = wfDbconfigManage.queryRecords(param);
		this.setRsList(rsList);
		return new LocalRenderer(getPage());
	}
	public ViewRenderer doSelectAction(DataParam param){
		return new DispatchRenderer(getHandlerURL(WfDBOperatorEditHandler.class));
	}
	public ViewRenderer doBackAction(DataParam param){
		return new DispatchRenderer(getHandlerURL(WfDBOperatorEditHandler.class));
	}
}
